package com.ruoyi.mdkt.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.mdkt.entity.Task;
import com.ruoyi.mdkt.entity.vo.TaskVo;
import com.ruoyi.mdkt.mapper.TaskMapper;
import com.ruoyi.mdkt.service.TaskService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author gwl
 * @since 2022-10-22
 */
@Service
public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements TaskService {

    @Autowired
    private TaskMapper taskMapper;

    @Override
    public Task getSignTaskByCourseId(String courseId) {
        return taskMapper.getSignTaskByCourseId(courseId);
    }

    @Override
    public List<TaskVo> pageTaskAll(String studentId) {
        return taskMapper.pageTaskAll(studentId);
    }
}
